package com.huage.courseplatform.application.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.huage.courseplatform.framework.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_file")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="文件",description="文件")
public class SysFile extends BaseEntity<SysFile> implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "服务器文件名称")
    private String fileName;

    @ApiModelProperty(value = "上传文件名称")
    private String realName;

    @ApiModelProperty(value = "文件后缀")
    private String ext;

    @ApiModelProperty(value = "文件路径")
    private String path;

    @ApiModelProperty(value = "文件大小")
    private Long size;

    @ApiModelProperty(value = "文件类型")
    private String type;

}
